package com.chinatelecom.ifree.business.domain.order;

public enum FcodeStatus {
	INIT, ORDERED, OCCUPY;

	public static FcodeStatus getStatus(int order) throws Exception {
		switch (order) {
		case 0:
			return FcodeStatus.INIT;
		case 1:
			return FcodeStatus.ORDERED;
		case 2:
			return FcodeStatus.OCCUPY;
		default:
			throw new Exception("order[" + order + "] invalid");
		}
	}
}
